<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class ModifyUserCertOcrsColumns extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('user_cert_ocrs', function (Blueprint $table) {
            $table->text('id_card_front')->nullable()->change();
            $table->text('id_card_back')->nullable()->change();
            $table->text('hand_cert')->nullable()->change();
            $table->string('domicile_address')->nullable()->change();
            $table->string('issuing_authority')->nullable()->change();
            $table->unsignedInteger('issue_gov_code')->nullable()->change();
            $table->date('valid_date_begin')->nullable()->change();
            $table->string('valid_date_end')->nullable()->change();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {

    }
}
